<!DOCTYPE HTML>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<title>复习1</title>
		<script type="text/javascript" language="javascript">
			/*window.onload=function(){
				var cur=new Date();
				var years=cur.getUTCFullYear();
				var months=cur.getUTCMonth();
				var days=cur.getUTCDate();
				var hours=cur.getHours();
				var senconds=cur.getSeconds();
				var minutes=cur.getMinutes();
			alert("此时时间是："+years+"年"+months+"月"+days+"日"+hours+"时"+senconds+"分"+minutes+"秒");
			 var string="I Love YOU";
			 document.write("<p>把字符都换成小写字母："+string.toLowerCase()+"</p>");
			 document.write("<p>把字符都换成大写字母："+string.toUpperCase()+"</p>");
			 document.write("<p>显示为下标"+string.sub()+"</p>");
			 document.write("<p>显示为上标"+string.sup()+"</p>");
			 document.write("<p>把字符串显示为链接"+string.link("http://www.xxx.com")+"</p>");
			   var date;
			   date=new Date();
			   date=date.toLocaleString();
			   alert(date);}
			   function showtime()
			   	{var now_time=new Date();
			   	var hours=now_time.getHours();
			   		
			   	var minutes=now_time.getMinutes();
			   	var seconds=now_time.getSeconds();
			   		
			   	var timer=""+((hours>24)?hours-24:hours);
			   
			   	timer+=((minutes<10)?":0":":")+minutes;
			   		
			   	timer+=((seconds<10)?":0":":")+seconds;
			   	
			   	timer+=""+((hours>12)?"pm":"am");
			   	document.clock.show.value=timer;
				setTimeout("showtime()",1000);
			}
			function loadform()
			{alert("自动装载！");
			}
			function unloadform(){
				alert("卸载 ！");
			}
			window.onload=function(){
				var btn=document.getElementById("myBtn");
				if(btn.addEventListener){
					btn.addEventListener("click",function(event){
					alert(event.type);
				},false);
				}
				else
				{	btn.attachEvent("onmouseout",function(event){
					alert(event.type+""window.event.type);
				});
				btn.onmouseover=function(){
					alert(window.event.type);
				};
				}
			}
			function img(){
				for(i=0;i<document.forms[1].length-1;i++)
				{
					alert(document.forms[1].length);
					document.Myform.showMsg.value+="\n";
					document.Myform.showMsg.value+=document.forms[1].elements[i].value;


				}
				alert(Myform.showMsg.value);
			}*/

		</script>
	</head>
	<frameset rows="*,80">
		<frame src="js1.html" name="js1">
		<frame src="f2.html" name="f2">
	</frameset>
	<noframes>
		使用框架功能，请在支持框架的浏览器中进行测试。
	</noframes>
	<!--body>
	<input type="submit" name="submit" id="myBtn" value="打印本页" onclick="javascript:window.print()"/>
	<form action="" method="">
		<tr>
			<td align=middle width="100%">
				<input name="text-field" type="text" size="20" onchange=alert("输入搜索内容")>
			</td>
		</tr>
		<tr>
			<td align=middle width="100%">
				<select size=1 name=search>
					<option value=Name selected>按名称</option>
					<option value=Singer>按歌手</option>
				</select>
				<input type="submit" name="submit2" value="提交"/>
			</td>
		</tr>
	</form>
	<script language="javascript">
		function strAdd(str)
		{
			if(str!='请选择'){
				form1.text.value="您选择的是："+str;
			}
			else{
				form1.text.value="";
			}
		}
	</script>
	<form id="form1" name="form1" method="post" action="">
		<label>
			<textarea name="text" cols="50" rows="2" onselect="alert('您想拷贝吗？')"></textarea>
		</label>
		<p><label>
			<select name="select1" onchange="strAdd(this.value)">
				<option value="请选择">选择</option>
				<option value="北京">北京</option>
				<option value="南京">南京</option>
				<option value="安徽">安徽</option>
				<option value="广西">广西</option>
				<option value="四川">四川</option>
				<option value="其他">其他</option>
			</select>
		</label></p>
	</form>
	<script>
		function test1(){
			var txt=document.getElementById("txt_1");
			window.alert(txt.type);
			var pwds=document.getElementsByName("txtUPwd");
			window.alert(pwds.length);
			window.alert(pwds[1].id);
			var eles=document.getElementsByTagName("input");
			window.alert(eles.length);
			window.alert(eles[3].value);
		}
	</script>
	<form id="frm" method="post">
		用户名：<input type="text" id="txt_1" name="txtUName"/>
		密码：<input type="password" id="txt_2" name="txtUPwd"/>
		确认密码：<input type="password" id="txt_3" name="txtUPwd"/>
		<input type="button" name="btnTest" value="测试" onclick="test1()"/>
	</form>
	<form name="Myform">
		<p>个人简介</p>
		<p>
			<textarea name="showMsg" cols="40" row="8"></textarea>
		</p>
	</form>
	<form name="form1" method="post" action="">用户信息<br>
	姓名：<input type="text" name="Name"/>
	<p>
		性别：<input type="text" name="sex"/>
		<label>
			<input type="submit" name="Submit" value="提交" onclick="img()"/>
		</label>
	</p>
	</form>
	<a href="#">首页  |  公司简介  |公司新闻</a>
	<script language="JavaScript">
		function initArray(){
			for(var i=0;i<initArray.arguments.length;i++)
			{
				this[i]=initArray.arguments[i];

			}
			this.length=initArray.arguments.length;
		}
		var colors=new initArray('#000000','#0000FF','#80FFFF','80FF80','#FFFF00','#FF8000','#FF00FF','#FF0000');
		delay=100;
		link=0;
		vlink=0;
		function linkDance(){
			link=(link+1)%colors.length;
			vlink=(vlink+1)%colors.length;
			document.linkColor=colors[link];
			document.vlinkColor=colors[vlink];
			setTimeout("linkDance()",delay);
		}
		linkDance();
	</script>
	</body-->
</html>